<?php
// myfunc_helper.php --- Time-stamp: <2008-12-27 15:27:07 lancer>
// Copyright 2008 Julian Qian
// Author: lancer@pdn
// Version: $Id: myfunc_helper.php,v 0.0 2008/12/26 04:22:06 lancer Exp $
// Keywords: 

function current_link(){
    $CI = &get_instance();
    $segs = $CI->uri->segment_array();
    if(is_array($segs)){
        return implode("/", $segs);
    }else{
        return "";
    }
}

function html_field($legend, $content){
    return "<fieldset>\n<legend>$legend</legend>\n$content</fieldset>\n";
}

function page_start($start){
    if($start < 1){
        return 0;
    }else{
        return $start -1;
    }
}

?>